import React from 'react'
import PropTypes from 'prop-types'
import {Modal} from 'antd'


const ModalWrapper = ({
                    modalProperties, children
               }) => {

  return (
    <Modal {...modalProperties} >
      {children}
    </Modal>
  )
}

ModalWrapper.propTypes = {
  modalProperties: PropTypes.object
}

export default ModalWrapper
